<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/25
 * Time: 下午7:53
 */

namespace src\base\api;


class Registry
{
    static protected $objects = [];

    static function get($key){
        if(isset(self::$objects[$key]))
            return self::$objects[$key];
        return null;
    }
    static function set($key,$value){
        self::$objects[$key] = $value;
    }
    static function _unset($key){
        unset(self::$objects[$key]);
    }
}